package com.jkc.xh.adapters.viewholder;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.jkc.xh.R;
import com.jkc.xh.models.SearchStockModel;

import org.androidannotations.annotations.EViewGroup;
import org.androidannotations.annotations.ViewById;

/**
 * Created by wangjie28 on 2015/11/13.
 */
@EViewGroup(R.layout.item_stock_search)
public class SearchStockView extends RelativeLayout {

    @ViewById
    TextView stock_name;
    @ViewById
    TextView stock_code;

    public SearchStockView(Context context) {
        super(context);
    }

    public SearchStockView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }


    public void bind(SearchStockModel model) {
        stock_name.setText(model.name);
        stock_code.setText(model.code);
    }

}
